# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=py3-pygraphviz
pkgver=1.5
pkgrel=0
pkgdesc="Python interface to Graphviz"
options="!check" # FAILED (failures=11, errors=47)
url="https://pygraphviz.github.io/"
arch="all"
license="BSD-3-Clause"
depends="python3"
makedepends="python3-dev graphviz-dev py3-setuptools"
checkdepends="py3-nose"
subpackages="$pkgname-doc"
source="https://github.com/pygraphviz/pygraphviz/archive/pygraphviz-$pkgver.tar.gz"
builddir="$srcdir/pygraphviz-pygraphviz-$pkgver"

replaces="py-pygraphviz" # Backwards compatibility
provides="py-pygraphviz=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="907f575dc070fa1f45ebc21572eb96598236179c61fe7f8ef09021fe17d77b21e7d85fbf9a065ccd3de343a7f3f13f4bea4ed3066e21125b0443ed447b7b9e97  pygraphviz-1.5.tar.gz"
